package cn.tangsihai.controller;

import cn.tangsihai.User;
import cn.tangsihai.feigin.clients.UserFeginClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PayController {
    @Autowired
    private UserFeginClient userFeginClient;

    @GetMapping("/getById/{id}")
    public User getOrder(@PathVariable("id") Long id){
        return userFeginClient.userGet(id);
    }
}
